<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=7">
<title>后台管理中心</title>
<link href="/courses/public/admin/css/reset.css" rel="stylesheet" type="text/css">
<link href="/courses/public/admin/css/zh-cn-system.css" rel="stylesheet" type="text/css">
<link href="/courses/public/admin/css/table_form.css" rel="stylesheet" type="text/css">
<link href="/courses/public/admin/css/dialog.css" rel="stylesheet" type="text/css">
<script language="javascript" type="text/javascript" src="/courses/public/admin/js/dialog.js"></script>
	<link rel="stylesheet" type="text/css" href="/courses/public/admin/css/style/zh-cn-styles1.css" title="styles1" media="screen">
	<link rel="alternate stylesheet" type="text/css" href="/courses/public/admin/css/style/zh-cn-styles2.css" title="styles2" media="screen" disabled="">
	<link rel="alternate stylesheet" type="text/css" href="/courses/public/admin/css/style/zh-cn-styles3.css" title="styles3" media="screen" disabled="">
    <link rel="alternate stylesheet" type="text/css" href="/courses/public/admin/css/style/zh-cn-styles4.css" title="styles4" media="screen" disabled="">
<script language="javascript" type="text/javascript" src="/courses/public/admin/js/jquery.min.js"></script>
<script language="javascript" type="text/javascript" src="/courses/public/admin/js/admin_common.js"></script>
<script language="javascript" type="text/javascript" src="/courses/public/admin/js/styleswitch.js"></script>
<script type="text/javascript">
	window.focus();
	var pc_hash = 'RBADF5';
			window.onload = function(){
		var html_a = document.getElementsByTagName('a');
		var num = html_a.length;
		for(var i=0;i<num;i++) {
			var href = html_a[i].href;
			if(href && href.indexOf('javascript:') == -1) {
				if(href.indexOf('?') != -1) {
					html_a[i].href = href+'&pc_hash='+pc_hash;
				} else {
					html_a[i].href = href+'?pc_hash='+pc_hash;
				}
			}
		}

		var html_form = document.forms;
		var num = html_form.length;
		for(var i=0;i<num;i++) {
			var newNode = document.createElement("input");
			newNode.name = 'pc_hash';
			newNode.type = 'hidden';
			newNode.value = pc_hash;
			html_form[i].appendChild(newNode);
		}
	}
</script>
</head>
<body>
<style type="text/css">
	html{_overflow-y:scroll}
</style><script language="javascript" type="text/javascript" src="/courses/public/admin/js/member_common.js"></script>
<script language="javascript" type="text/javascript" src="/courses/public/admin/js/formvalidator.js" charset="UTF-8"></script>
<script language="javascript" type="text/javascript" src="/courses/public/admin/js/formvalidatorregex.js" charset="UTF-8"></script>
<script type="text/javascript">
  $(document).ready(function() {
	$(":text").focus(function(){
		$(this).select();
	})
	  
	$.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
	$("#password").formValidator({onshow:"请输入",onfocus:"密码应该为6-20位之间"}).inputValidator({min:6,max:20,onerror:"密码应该为6-20位之间"});
	$("#pwdconfirm").formValidator({onshow:"请重新输入",onfocus:"两次密码不同。",oncorrect:"密码输入一致"}).compareValidator({desid:"password",operateor:"=",onerror:"两次密码不同。"});
	$("#email").formValidator({onshow:"请输入邮箱",onfocus:"请输入邮箱",oncorrect:"邮箱格式正确"}).regexValidator({regexp:"email",datatype:"enum",onerror:"邮箱格式错误"});
	$("#userstyle").formValidator({onshow:"请输入",onfocus:"请输入邮箱",oncorrect:"邮箱格式正确"});
	$("#useracc").formValidator({onshow:"账号",onfocus:"账号应该为2-20位之间"}).inputValidator({min:2,max:20,onerror:"账号应该为2-20位之间"});

	$("#username").formValidator({onshow:"请输入用户名",onfocus:"用户名应该为2-20位之间",oncorrect:"该用户名可以使用"}).inputValidator({min:2,max:20,onerror:"你输入的用户名非法,请确认"})
	    .ajaxValidator({
		dataType : "html",
		async : true,
		url : "__URL__/member_check?content=username&userid={[$array.userid]}",
		success : function(data){
	        if( data == 1 ) return true;
	        if( data == 0 ) return false;
			return false;
		},
		onerror : "该用户名已存在，请更换用户名",
		onwait : "正在对用户名进行合法性校验，请稍候..."
	}).defaultPassed();;

	$("#userTrueName").formValidator({onshow:"请输入真实姓名",onfocus:"真实姓名应该为2-20位之间",oncorrect:"该姓名可以使用"}).inputValidator({min:2,max:20,onerror:"真实姓名应该为2-20位之间"})
	    .ajaxValidator({
		dataType : "html",
		async : true,
		url : "__URL__/member_check?content=userTrueName&userid={[$array.userid]}",
		success : function(data){
	//		alert(data);
	        if( data == 1 ) return true;
	        if( data == 0 ) return false;
			return false;
		},
		onerror : "该姓名已存在，请更换",
		onwait : "正在对姓名进行合法性校验，请稍候..."
	}).defaultPassed();;
});
</script>
<div class="pad-10">
<div class="common-form">
<form name="myform" action="__URL__/member_add" method="post" id="myform">
	<input name="userid" type="hidden" value="{[$array.userid]}">
<fieldset>
	<legend>基本信息</legend>
	<table width="100%" class="table_form">
		<tbody>
		<tr>
			<td>账号</td> 
			<td><input type="text" name="useracc" id="useracc" class="input-text" value="登陆账号"></td>
		</tr>
		<tr>
			<td>用户名</td> 
			<td><input type="text" name="username" id="username" class="input-text" value="网站呢称"></td>
		</tr>
		<tr>
			<td>真实姓名</td> 
			<td><input type="text" name="userTrueName" id="userTrueName" class="input-text" value="个人名称"></td>
		</tr>
		<tr>
			<td>邮箱</td>
			<td><input type="text" name="userEmail" id="email" class="input-text" >
						</td>
		</tr>
		<tr>
			<td>会员类型</td>
			<td>
				<select name="userstyle">
					<option value="1">超级管理员</option>
					<option value="2">一般管理员</option>
					<option value="3">一般会员</option>
				</select>			
			</td>
		</tr>
		<tr>
			<td>密码</td> 
			<td><input type="password" name="password" id="password" class="input-text"></td>
		</tr>
		<tr>
			<td>确认密码</td> 
			<td><input type="password" name="pwdconfirm" id="pwdconfirm" class="input-text"></td>
		</tr>
	</tbody></table>
</fieldset>
<div class="bk15"></div>
<fieldset>
	<legend>详细信息</legend>
	<table width="100%" class="table_form">
		</table>
</fieldset>

    <div class="bk15"></div>
    <input name="dosubmit" id="dosubmit" type="submit" value="提交" class="dialog">
</div>
</div>
<div style="display: none; position: absolute; " class=""><div class="aui_outer"><table class="aui_border"><tbody><tr><td class="aui_nw"></td><td class="aui_n"></td><td class="aui_ne"></td></tr><tr><td class="aui_w"></td><td class="aui_c"><div class="aui_inner"><table class="aui_dialog"><tbody><tr><td colspan="2" class="aui_header"><div class="aui_titleBar"><div class="aui_title" style="cursor: move; display: block; "></div><a class="aui_close" href="javascript:/*artDialog*/;" style="display: block; ">×</a></div></td></tr><tr><td class="aui_icon" style="display: none; "><div class="aui_iconBg" style="background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; background-position: initial initial; background-repeat: initial initial; "></div></td><td class="aui_main" style="width: auto; height: auto; "><div class="aui_content" style="padding-top: 20px; padding-right: 25px; padding-bottom: 20px; padding-left: 25px; "></div></td></tr>
<tr>
	<td colspan="2" class="aui_footer"><div class="aui_buttons" style="display: none; "></div></td></tr></tbody></table></div></td>
	<td class="aui_e"></td></tr><tr><td class="aui_sw"></td><td class="aui_s"></td><td class="aui_se" style="cursor: se-resize; "></td></tr></tbody></table></div></div></body></html>